package com.xhwl.logistics.converter;

import com.xhwl.logistics.bo.input.PayFeeInfoBO;
import com.xhwl.logistics.dto.query.PayFeeInfoDTO;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Component;

@Component
public class ToPayFeeInfoBO {

    public PayFeeInfoBO toToPayFeeInfoBO(PayFeeInfoDTO payFeeInfoDTO) {
        PayFeeInfoBO payFeeInfoBO = new PayFeeInfoBO();

        BeanUtils.copyProperties(payFeeInfoDTO, payFeeInfoBO, "parkId");
        payFeeInfoBO.setParkId(String.valueOf(payFeeInfoDTO.getParkId()));

        return payFeeInfoBO;
    }

}
